<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SearchData</title>
<link rel="stylesheet" type="text/css" href="/css/global.css" />
</head>
<body>
<ul>
<c:forEach var="e" items="${f:errors()}">
<li>${f:h(e)}</li>
</c:forEach>
</ul>
<form action="${f:url('update')}" method="post">
<input type="hidden" ${f:hidden("key")}/>
<input type="hidden" ${f:hidden("version")}/>
Engine Name<br />
<input type="text" ${f:text("engineName")} class="${f:errorClass('enginName', 'err')}"/><br />
Query<br />
<input type="text" ${f:text("query")} class="${f:errorClass('query', 'err')}"/><br />
URL<br />
<textarea name="url" class="${f:errorClass('url', 'err')}">${f:h(url)}</textarea><br />
HTML XPath<br />
<input type="text" ${f:text("newHtmlDataXPath")} class="${f:errorClass('newHtmlDataXPath', 'err')}"/><br />
MD5 XPath<br />
<input type="text" ${f:text("md5XPath")} class="${f:errorClass('md5XPath', 'err')}"/><br />
Old HTML Data<br />
<textarea name="oldHtmlData" class="${f:errorClass('oldHtmlData', 'err')}">${f:h(oldHtmlData)}</textarea><br />
New HTML Data<br />
<textarea name="newHtmlData" class="${f:errorClass('newHtmlData', 'err')}">${f:h(newHtmlData)}</textarea><br />
Diff HTML Data<br />
<textarea name="diffHtmlData" class="${f:errorClass('diffHtmlData', 'err')}">${f:h(diffHtmlData)}</textarea><br />
MD5<br />
<input type="text" ${f:text("md5")} class="${f:errorClass('md5', 'err')}"/><br />

Refresh Date<br />
<fmt:formatDate value="${refreshDate}" pattern="yyyy/MM/dd HH:mm:ss" /><br />
Update Date<br />
<fmt:formatDate value="${updateDate}" pattern="yyyy/MM/dd HH:mm:ss" /><br />
Insert Date<br />
<fmt:formatDate value="${insertDate}" pattern="yyyy/MM/dd HH:mm:ss" /><br />


<input type="submit" value="Update"/>
</form>
</body>
</html>